<template>
  <view class="myQrCode">
    <topTitle title="我的二维码" />
    <view class="com">
      <div class="code">
        <view class="head">
          <up-avatar
            mode="aspectFill"
            :src="userInfo.picture"
            size="70"
          ></up-avatar>
          <view>{{ userInfo.nick_name }}</view>
          <view class="codeBg">
            <up-qrcode :size="185" :val="userInfo.id_no"></up-qrcode>
          </view>
          <view class="tips">用Bond扫一扫二维码，加我为好友</view>
        </view>
      </div>
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
// 獲取用戶信息
let userInfo = ref<any>();
userInfo.value = uni.getStorageSync("userInfo");
</script>
<style scoped lang="scss">
@import "../../static/scss/addFriend.scss";
</style>
